import React, { useState, useEffect } from 'react'
import { View, Image } from '@tarojs/components'
import Taro from '@tarojs/taro'

import './index.less'

export default (props: any) => {
  const info:any  = Taro.getStorageSync('info')
  const userInfo:any = info?JSON.parse(info).userInfo:{}
  return (
    <View className='headInfo'>
      <Image className='bg' src={IMGSRC+'bg.png'}></Image>
      <Image className='ico' src={userInfo.avatarUrl}></Image>
      <View className='nickname'>{userInfo.nickName}</View>
      <View className='tel'>{userInfo.tel}</View>
    </View>
  )
}
